package com.zhlab.ssm.demo.web;

import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @ClassName App
 * @Description //App
 * @Author singleZhang
 * @Email 405780096@qq.com
 * @Date 2021/1/19 0019 下午 3:02
 **/
public class App {

    public static void main(String[] args) throws ClassNotFoundException {
        //XmlBeanFactory因为已经被废弃,这里使用了ClassPathXmlApplicationContext
        //XmlBeanFactory使用方式如下:
       // BeanFactory factory = new XmlBeanFactory(new ClassPathResource("applicationContext.xml"));
        ClassPathXmlApplicationContext context =
                new ClassPathXmlApplicationContext("applicationContext.xml");


    }

}
